package com.gmadmin.sysadmin.security.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.security.core.GrantedAuthority;

/**
 * 避免序列化问题
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Schema(description = "权限实体")
public class AuthorityDto implements GrantedAuthority {

    @Schema(description = "权限路径")
    private String authority;

}
